package main

import "fmt"

func myFunc(a, b int)  {
	fmt.Printf("a = %d, b = %d\n", a, b)
}

func myFunc1(a, b int, c ...int)  {
	fmt.Printf("a = %d, b = %d\n", a, b)
	fmt.Println("c len =", len(c))
	for i, data := range c {
		fmt.Printf("c[%d] = %d\n", i, data)
	}
}

func myFunc2(a int, b string, c float64)  {
	fmt.Printf("a = %d, b = %s, c = %f\n", a, b, c)
}

func main()  {
	myFunc(12, 34)
	fmt.Println("-------------")
	myFunc1(11, 14)
	fmt.Println("-------------")
	myFunc1(11, 14, 15)
	fmt.Println("-------------")
	myFunc1(11, 14, 15, 17, 23)
	fmt.Println("-------------")
	myFunc2(35, "awertdsa", 2.14)
}
